package com.sunny.fetch.pojo;

import javax.persistence.*;

@Table(name = "f_hs_const")
public class FHsConst {
    @Id
    private Long tid;

    /**
     * TS代码
     */
    @Column(name = "ts_code")
    private String tsCode;

    /**
     * 沪深港通类型SH沪SZ深
     */
    @Column(name = "hs_type")
    private String hsType;

    /**
     * 纳入日期
     */
    @Column(name = "in_date")
    private String inDate;

    /**
     * 剔除日期
     */
    @Column(name = "out_date")
    private String outDate;

    /**
     * 是否最新 1是 0否
     */
    @Column(name = "is_new")
    private String isNew;

    public FHsConst(Long tid, String tsCode, String hsType, String inDate, String outDate, String isNew) {
        this.tid = tid;
        this.tsCode = tsCode;
        this.hsType = hsType;
        this.inDate = inDate;
        this.outDate = outDate;
        this.isNew = isNew;
    }

    public FHsConst() {
        super();
    }

    /**
     * @return tid
     */
    public Long getTid() {
        return tid;
    }

    /**
     * @param tid
     */
    public void setTid(Long tid) {
        this.tid = tid;
    }

    /**
     * 获取TS代码
     *
     * @return ts_code - TS代码
     */
    public String getTsCode() {
        return tsCode;
    }

    /**
     * 设置TS代码
     *
     * @param tsCode TS代码
     */
    public void setTsCode(String tsCode) {
        this.tsCode = tsCode;
    }

    /**
     * 获取沪深港通类型SH沪SZ深
     *
     * @return hs_type - 沪深港通类型SH沪SZ深
     */
    public String getHsType() {
        return hsType;
    }

    /**
     * 设置沪深港通类型SH沪SZ深
     *
     * @param hsType 沪深港通类型SH沪SZ深
     */
    public void setHsType(String hsType) {
        this.hsType = hsType;
    }

    /**
     * 获取纳入日期
     *
     * @return in_date - 纳入日期
     */
    public String getInDate() {
        return inDate;
    }

    /**
     * 设置纳入日期
     *
     * @param inDate 纳入日期
     */
    public void setInDate(String inDate) {
        this.inDate = inDate;
    }

    /**
     * 获取剔除日期
     *
     * @return out_date - 剔除日期
     */
    public String getOutDate() {
        return outDate;
    }

    /**
     * 设置剔除日期
     *
     * @param outDate 剔除日期
     */
    public void setOutDate(String outDate) {
        this.outDate = outDate;
    }

    /**
     * 获取是否最新 1是 0否
     *
     * @return is_new - 是否最新 1是 0否
     */
    public String getIsNew() {
        return isNew;
    }

    /**
     * 设置是否最新 1是 0否
     *
     * @param isNew 是否最新 1是 0否
     */
    public void setIsNew(String isNew) {
        this.isNew = isNew;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", tid=").append(tid);
        sb.append(", tsCode=").append(tsCode);
        sb.append(", hsType=").append(hsType);
        sb.append(", inDate=").append(inDate);
        sb.append(", outDate=").append(outDate);
        sb.append(", isNew=").append(isNew);
        sb.append("]");
        return sb.toString();
    }
}